﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace CodeGenerator.Interface
{
    interface ICreatEntityClass
    {
        /// <summary>
        /// 创建实体类
        /// </summary>
        /// <param name="dt">字段集合</param>
        /// <param name="className">类名</param>
        /// <param name="classNameSpace">命名空间</param>
        /// <returns>实体类的代码内容字符</returns>
        string CreatEntityClass(string tableName,DataTable dt,string className,string classNameSpace);
        /// <summary>
        /// 将生成的代码写入.CS文件中
        /// </summary>
        /// <param name="className">类名</param>
        /// <param name="strCode">代码文件</param>
        /// <param name="filePath">存储路径</param>
        /// <returns>写入是否成功</returns>
        bool CreatEntityClassFile(string className, string strCode, string filePath);
    }
}
